﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinqExtender.Attributes
{
    /// <summary>
    /// Use this to mark if entity name is different than class name.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class OriginalEntityNameAttribute : System.Attribute
    {
        /// <summary>
        /// Creates a new instance of the attribute for an entity name.
        /// </summary>
        /// <param name="entityName"></param>
        public OriginalEntityNameAttribute(string entityName)
        {
            this.entityName = entityName;
        }

        private readonly string entityName = string.Empty;
        
        /// <summary>
        /// maps to the name of the original enity name.
        /// </summary>
        public string EntityName
        {
            get
            {
                return entityName;
            }
        }

    }
}